import { request } from '../utils/request';
const getDeprtmentTree = async () => {
  return await request.get('/department/tree');
};
const addDepartment = async (params: any) => {
  return await request.post('/department/add', params);
};
const updateDepartment = async (params: any) => {
  return await request.post('/department/update', params);
};
const deleteDepartment = async (params: any) => {
  return await request.post('/department/delete', params);
};
export { getDeprtmentTree, addDepartment, updateDepartment, deleteDepartment };
